import { herinRequist } from "../http.js";
// 登录
const House = {
	getHistoryList(data) {
		return herinRequist({ url: '/app/house-apply', method: 'GET' , data});
	},
	postFrom(data) {
		return herinRequist({ url: '/app/house-apply', method: 'POST', data,contentType:'application/json' });
	},
	getNum() {
		return herinRequist({ url: '/app/house-count', method: 'GET'});
	},
	getDetails(id) {
		return herinRequist({ url: '/app/house-apply-detail', method: 'GET', data: { id }});
	},
	putRevocation(data) {
		return herinRequist({ url: '/app/house-apply-cancel', method: 'POST', data, contentType:'application/json'});
	},
	putApproval(data) {
		return herinRequist({ url: '/app/house-apply-audit', method: 'POST', data, contentType:'application/json'});
	}
}

export default House;
